/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aiaudio.database.tables;

import aiaudio.database.Family;
import aiaudio.database.qualifiers.StringQualifier;
import org.apache.hadoop.hbase.client.Put;

/**
 *
 * @author nastya
 */
public class SocialTable extends TableStructure {

    private static final StringQualifier F1 = new StringQualifier("f1");
    private static final StringQualifier F2 = new StringQualifier("f2");
    private static final Family SINGLE_FAMILY = new Family("s");

    @Override
    public Family[] getAllFamilies() {
        return new Family[]{SINGLE_FAMILY};
    }
    
    public static void addLink(Put put, String user1, String user2){
        addData(put, SINGLE_FAMILY, F1, user1);
        addData(put, SINGLE_FAMILY, F2, user2);
    }
}
